<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>ZeroClipboard unit tests: core/private.js</title>
  <link rel="stylesheet" href="../../node_modules/qunitjs/qunit/qunit.css">
  <script src="../../node_modules/qunitjs/qunit/qunit.js"></script>
  <script>
    // Polyfill in future functionality: https://github.com/jquery/qunit/issues/490
    if (!QUnit.assert.expect) {
      QUnit.assert.expect = QUnit.expect;
    }

    // Require `expect` calls
    QUnit.config.requireExpects = true;

    // Prevent against Firefox/Firebug failing the global pollution check
    var getInterface = null;

    // Prevent against failing the global pollution check in all browsers other than IE
    if (typeof window.ActiveXObject === "undefined") {
      window.ActiveXObject = null;
    }

    // Prevent against Flash's ExternalInterface failing the global pollution check (seems to be only in IE < 11)
    var __flash__arrayToXML = null,
        __flash__argumentsToXML = null,
        __flash__objectToXML = null,
        __flash__escapeXML = null,
        __flash__toXML = null,
        __flash__addCallback = null,
        __flash__removeCallback = null,
        __flash__request = null;

    // Provide a shell of the `ZeroClipboard` object to pass through a few tests
    var ZeroClipboard = {
      setData: function() {},
      clearData: function() {},
      focus: function(el) {
        _currentElement = el;
      }
    };
  </script>
  <script src="../../src/js/shared/state.js"></script>
  <script src="../../src/js/shared/private.js"></script>
  <script src="../../src/js/core/state.js"></script>
  <script src="../../src/js/core/private.js"></script>
  <script src="../../node_modules/jquery/dist/jquery.js"></script>
  <script src="private.tests.js"></script>
</head>
<body>
  <div id="qunit"></div>
  <div id="qunit-fixture">
    <div id="goodTargetId" data-clipboard-target="relTargetId"></div>
    <div id="relTargetId"></div>
    <div id="badTargetId1" data-clipboard-target="elementIdWithoutMatch"></div>
    <div id="badTargetId2"></div>

    <button id="d_clip_button" class="my_clip_button" title="Click me to copy to clipboard." data-clipboard-text="Copy me!">
      <b>Copy To Clipboard...</b>
    </button>
    <a href="" class="no_pointer_anchor" style="cursor:default;"></a>
    <a href="" class="no_cursor_style" style="cursor:auto;"></a>
    <span class="zindex-auto" style="z-index:auto;"></span>
    <span class="big-border" style="border: 10px solid red;"></span>
  </div>
</body>
</html>
